package durose.system.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BossExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BossExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBoss_idIsNull() {
            addCriterion("boss_id is null");
            return (Criteria) this;
        }

        public Criteria andBoss_idIsNotNull() {
            addCriterion("boss_id is not null");
            return (Criteria) this;
        }

        public Criteria andBoss_idEqualTo(Integer value) {
            addCriterion("boss_id =", value, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_idNotEqualTo(Integer value) {
            addCriterion("boss_id <>", value, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_idGreaterThan(Integer value) {
            addCriterion("boss_id >", value, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("boss_id >=", value, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_idLessThan(Integer value) {
            addCriterion("boss_id <", value, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_idLessThanOrEqualTo(Integer value) {
            addCriterion("boss_id <=", value, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_idIn(List<Integer> values) {
            addCriterion("boss_id in", values, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_idNotIn(List<Integer> values) {
            addCriterion("boss_id not in", values, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_idBetween(Integer value1, Integer value2) {
            addCriterion("boss_id between", value1, value2, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_idNotBetween(Integer value1, Integer value2) {
            addCriterion("boss_id not between", value1, value2, "boss_id");
            return (Criteria) this;
        }

        public Criteria andBoss_nameIsNull() {
            addCriterion("boss_name is null");
            return (Criteria) this;
        }

        public Criteria andBoss_nameIsNotNull() {
            addCriterion("boss_name is not null");
            return (Criteria) this;
        }

        public Criteria andBoss_nameEqualTo(String value) {
            addCriterion("boss_name =", value, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameNotEqualTo(String value) {
            addCriterion("boss_name <>", value, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameGreaterThan(String value) {
            addCriterion("boss_name >", value, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameGreaterThanOrEqualTo(String value) {
            addCriterion("boss_name >=", value, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameLessThan(String value) {
            addCriterion("boss_name <", value, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameLessThanOrEqualTo(String value) {
            addCriterion("boss_name <=", value, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameLike(String value) {
            addCriterion("boss_name like", value, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameNotLike(String value) {
            addCriterion("boss_name not like", value, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameIn(List<String> values) {
            addCriterion("boss_name in", values, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameNotIn(List<String> values) {
            addCriterion("boss_name not in", values, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameBetween(String value1, String value2) {
            addCriterion("boss_name between", value1, value2, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_nameNotBetween(String value1, String value2) {
            addCriterion("boss_name not between", value1, value2, "boss_name");
            return (Criteria) this;
        }

        public Criteria andBoss_numberIsNull() {
            addCriterion("boss_number is null");
            return (Criteria) this;
        }

        public Criteria andBoss_numberIsNotNull() {
            addCriterion("boss_number is not null");
            return (Criteria) this;
        }

        public Criteria andBoss_numberEqualTo(String value) {
            addCriterion("boss_number =", value, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberNotEqualTo(String value) {
            addCriterion("boss_number <>", value, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberGreaterThan(String value) {
            addCriterion("boss_number >", value, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberGreaterThanOrEqualTo(String value) {
            addCriterion("boss_number >=", value, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberLessThan(String value) {
            addCriterion("boss_number <", value, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberLessThanOrEqualTo(String value) {
            addCriterion("boss_number <=", value, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberLike(String value) {
            addCriterion("boss_number like", value, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberNotLike(String value) {
            addCriterion("boss_number not like", value, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberIn(List<String> values) {
            addCriterion("boss_number in", values, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberNotIn(List<String> values) {
            addCriterion("boss_number not in", values, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberBetween(String value1, String value2) {
            addCriterion("boss_number between", value1, value2, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_numberNotBetween(String value1, String value2) {
            addCriterion("boss_number not between", value1, value2, "boss_number");
            return (Criteria) this;
        }

        public Criteria andBoss_deptIsNull() {
            addCriterion("boss_dept is null");
            return (Criteria) this;
        }

        public Criteria andBoss_deptIsNotNull() {
            addCriterion("boss_dept is not null");
            return (Criteria) this;
        }

        public Criteria andBoss_deptEqualTo(Integer value) {
            addCriterion("boss_dept =", value, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_deptNotEqualTo(Integer value) {
            addCriterion("boss_dept <>", value, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_deptGreaterThan(Integer value) {
            addCriterion("boss_dept >", value, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_deptGreaterThanOrEqualTo(Integer value) {
            addCriterion("boss_dept >=", value, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_deptLessThan(Integer value) {
            addCriterion("boss_dept <", value, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_deptLessThanOrEqualTo(Integer value) {
            addCriterion("boss_dept <=", value, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_deptIn(List<Integer> values) {
            addCriterion("boss_dept in", values, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_deptNotIn(List<Integer> values) {
            addCriterion("boss_dept not in", values, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_deptBetween(Integer value1, Integer value2) {
            addCriterion("boss_dept between", value1, value2, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_deptNotBetween(Integer value1, Integer value2) {
            addCriterion("boss_dept not between", value1, value2, "boss_dept");
            return (Criteria) this;
        }

        public Criteria andBoss_sexIsNull() {
            addCriterion("boss_sex is null");
            return (Criteria) this;
        }

        public Criteria andBoss_sexIsNotNull() {
            addCriterion("boss_sex is not null");
            return (Criteria) this;
        }

        public Criteria andBoss_sexEqualTo(String value) {
            addCriterion("boss_sex =", value, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexNotEqualTo(String value) {
            addCriterion("boss_sex <>", value, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexGreaterThan(String value) {
            addCriterion("boss_sex >", value, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexGreaterThanOrEqualTo(String value) {
            addCriterion("boss_sex >=", value, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexLessThan(String value) {
            addCriterion("boss_sex <", value, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexLessThanOrEqualTo(String value) {
            addCriterion("boss_sex <=", value, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexLike(String value) {
            addCriterion("boss_sex like", value, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexNotLike(String value) {
            addCriterion("boss_sex not like", value, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexIn(List<String> values) {
            addCriterion("boss_sex in", values, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexNotIn(List<String> values) {
            addCriterion("boss_sex not in", values, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexBetween(String value1, String value2) {
            addCriterion("boss_sex between", value1, value2, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_sexNotBetween(String value1, String value2) {
            addCriterion("boss_sex not between", value1, value2, "boss_sex");
            return (Criteria) this;
        }

        public Criteria andBoss_dateIsNull() {
            addCriterion("boss_date is null");
            return (Criteria) this;
        }

        public Criteria andBoss_dateIsNotNull() {
            addCriterion("boss_date is not null");
            return (Criteria) this;
        }

        public Criteria andBoss_dateEqualTo(Date value) {
            addCriterion("boss_date =", value, "boss_date");
            return (Criteria) this;
        }

        public Criteria andBoss_dateNotEqualTo(Date value) {
            addCriterion("boss_date <>", value, "boss_date");
            return (Criteria) this;
        }

        public Criteria andBoss_dateGreaterThan(Date value) {
            addCriterion("boss_date >", value, "boss_date");
            return (Criteria) this;
        }

        public Criteria andBoss_dateGreaterThanOrEqualTo(Date value) {
            addCriterion("boss_date >=", value, "boss_date");
            return (Criteria) this;
        }

        public Criteria andBoss_dateLessThan(Date value) {
            addCriterion("boss_date <", value, "boss_date");
            return (Criteria) this;
        }

        public Criteria andBoss_dateLessThanOrEqualTo(Date value) {
            addCriterion("boss_date <=", value, "boss_date");
            return (Criteria) this;
        }

        public Criteria andBoss_dateIn(List<Date> values) {
            addCriterion("boss_date in", values, "boss_date");
            return (Criteria) this;
        }

        public Criteria andBoss_dateNotIn(List<Date> values) {
            addCriterion("boss_date not in", values, "boss_date");
            return (Criteria) this;
        }

        public Criteria andBoss_dateBetween(Date value1, Date value2) {
            addCriterion("boss_date between", value1, value2, "boss_date");
            return (Criteria) this;
        }

        public Criteria andBoss_dateNotBetween(Date value1, Date value2) {
            addCriterion("boss_date not between", value1, value2, "boss_date");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}